//
//  ShoeBagDressViewController.m
//  EasyToTesco
//
//  Created by mc on 16/1/31.
//  Copyright © 2016年 Jack. All rights reserved.
//

#import "ShoeBagDressViewController.h"
#import "HeaderFileForEasyToTesco.h"
#import "ShoeBagCollectionViewCell.h"
//导入下拉刷新头文件
#import "SDRefresh.h"
//
#import "AFNetworking.h"
#import "UIImageView+WebCache.h"
//滑动菜单
#import "HTHorizontalSelectionList.h"
//商品详情页面
#import "ShoperDetailViewController.h"

//注册cell
static NSString *cellIndentifier = @"ShoeBagCollectionViewCell";
//注册区头
//static NSString *headerIndentifier = @"HEADER";

@interface ShoeBagDressViewController ()<UICollectionViewDataSource, UICollectionViewDelegate, HTHorizontalSelectionListDelegate, HTHorizontalSelectionListDataSource>
{
 //二级id
    NSString *ffid;
    //三级id
    NSString *fid;
    //判断下拉的时候加载什么数据
    NSInteger what;
    
}

@property (nonatomic, strong)UICollectionView *ShoeColllectionview;
//添加刷新控件
@property (nonatomic, weak) SDRefreshHeaderView *refreshHeader;
@property (nonatomic, weak) SDRefreshFooterView *refreshFooter;

@property (nonatomic, strong)HTHorizontalSelectionList *selectionListone;
@property (nonatomic, strong)HTHorizontalSelectionList *selectionListtwo;

//存放选择按钮数据的数组

@property (nonatomic, strong)NSMutableArray *WholeClassArray;

@property (nonatomic, strong)NSMutableArray *firstArray;
@property (nonatomic, strong)NSMutableArray *secondArray;

@property (nonatomic, strong)NSMutableArray *firstIdArray;
@property (nonatomic, strong)NSMutableArray *secondIdArray;

@property (nonatomic, strong)NSMutableArray *wholeGoodsArray;

@end

@implementation ShoeBagDressViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.WholeClassArray = [@[]mutableCopy];
    self.wholeGoodsArray = [@[]mutableCopy];
    
    self.firstArray = [@[]mutableCopy];
    self.secondArray = [@[]mutableCopy];
    self.firstIdArray = [@[]mutableCopy];
    self.secondIdArray = [@[]mutableCopy];
    
    what = 0;
    
    [self addshoebagDressUI];
//
    
}
- (void)addshoebagDressUI {
    [self addshoeTopUI];
    
  
    
    [self addCollectionUI];
    [self setupHeader];
    [self setupFooter];
    
    [self getSubClassData];
    //只有一级id的数据解析
    [self getShoesAndColorData];
    
}

- (void) addShoeSelectBtnOne {
    [self.selectionListone removeFromSuperview];
   
    
    self.selectionListone = [[HTHorizontalSelectionList alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.secondView.frame), WEITH, 40)];
    self.selectionListone.tag = 100;
    self.selectionListone.delegate = self;
    self.selectionListone.dataSource = self;
    [self.view addSubview:self.selectionListone];
    
    
}

- (void)addShoeSelectBtnTwo {
    [self.selectionListtwo removeFromSuperview];
    self.selectionListtwo = [[HTHorizontalSelectionList alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.selectionListone.frame), WEITH, 40)];
    self.selectionListtwo.tag = 101;
    self.selectionListtwo.delegate = self;
    self.selectionListtwo.dataSource = self;
    [self.view addSubview:self.selectionListtwo];
}

#pragma mark - HTHorizontalSelectionListDataSource Protocol Methods

- (NSInteger)numberOfItemsInSelectionList:(HTHorizontalSelectionList *)selectionList {
    if (selectionList.tag == 100) {
        return self.firstArray.count;
    } else {
        return self.secondArray.count;
    }
}

- (NSString *)selectionList:(HTHorizontalSelectionList *)selectionList titleForItemWithIndex:(NSInteger)index {
    if (selectionList.tag == 100) {
        return self.firstArray[index];
    } else {
        return self.secondArray[index];
    }
    
}

#pragma mark - HTHorizontalSelectionListDelegate Protocol Methods

- (void)selectionList:(HTHorizontalSelectionList *)selectionList didSelectButtonWithIndex:(NSInteger)index {
    // update the view for the corresponding index
    //    self.selectedItemLabel.text = self.carMakes[index];
    if (selectionList.tag == 100) {
        NSLog(@"%@----%ld", self.firstArray[index], selectionList.tag);
        
        NSLog(@"%@", [self.WholeClassArray[index] objectForKey:@"cc"]);
        BOOL ssd = [[self.WholeClassArray[index] objectForKey:@"cc"] isEqual:[NSNull null]];
       
        if (!ssd) {
            NSMutableArray *ss = [self.WholeClassArray[index] objectForKey:@"cc"];
            self.secondArray = [@[]mutableCopy];
            self.secondIdArray = [@[]mutableCopy];
            
            for (NSDictionary *secondDic in ss) {
                [self.secondArray addObject:[secondDic objectForKey:@"classname"]];
                [self.secondIdArray addObject:[NSString stringWithFormat:@"%@", secondDic[@"id"]]];
            }
            what = 1;
            [self addShoeSelectBtnTwo];
            ffid = self.firstIdArray[index];
            //有二级id的数据解析
            [self getsecondgoodsData];
        }
        
        
        
        
       
        
    } else {
        
        what = 2;
        NSLog(@"%@----%ld", self.secondArray[index], selectionList.tag);
        fid = self.secondIdArray[index];
        //有三级目录的数据解析
        
        [self getthreegoodsData];
    }
    
    
    
    [self.ShoeColllectionview reloadData];
    
}

- (void)addCollectionUI {
    UICollectionViewFlowLayout *layout = [[ UICollectionViewFlowLayout alloc] init];
    //滚动方向
    layout.scrollDirection = UICollectionViewScrollDirectionVertical;
    //cell大小
    //    layout.itemSize = CGSizeMake(50, 50);
    //最小的行间距
    layout.minimumLineSpacing = 5;
    //cell之间的最小距离
    layout.minimumInteritemSpacing = 0;
    
    //设置区头大小
//        layout.headerReferenceSize = CGSizeMake(WEITH, 80);
    //    //设置区尾大小
    //    layout.footerReferenceSize = CGSizeMake(375, 50);
    //设置分区的间距, 不包含区头和区尾, 只影响内容部分的间距
    layout.sectionInset = UIEdgeInsetsMake(0, 0, 0, 0);
    
    UICollectionView *collectionview = [[UICollectionView alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.secondView.frame)+80, WEITH, HIGHT-CGRectGetMaxY(self.secondView.frame)-80) collectionViewLayout:layout];
    collectionview.delegate = self;
    collectionview.dataSource = self;
    collectionview.backgroundColor = [UIColor whiteColor];
    self.ShoeColllectionview = collectionview;
    [self.view addSubview:self.ShoeColllectionview];
    
    
    //注册cell
    UINib *nib = [UINib nibWithNibName:@"ShoeBagCollectionViewCell" bundle: [NSBundle mainBundle]];
    [self.ShoeColllectionview registerNib:nib forCellWithReuseIdentifier:cellIndentifier];
    
    
    
    //注册区头
//    UICollectionElementKindSectionHeader 区头
//    [self.ShoeColllectionview registerClass:[UICollectionReusableView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:headerIndentifier];
}

- (void)addshoeTopUI {
    UIImageView *image1 = [[UIImageView alloc] initWithFrame:CGRectMake(10, (self.secondView.frame.size.height-20)/2, 20, 20)];
    image1.image = [UIImage imageNamed:@"goback-icon.png"];
    [self.secondView addSubview:image1];
    self.leftBtn.hidden = YES;
    
    UIButton *goBackBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    goBackBtn.frame = CGRectMake(0, 0, self.secondView.frame.size.height, self.secondView.frame.size.height);
    [goBackBtn addTarget:self action:@selector(gobackClick) forControlEvents:UIControlEventTouchUpInside];
    [self.secondView addSubview:goBackBtn];
    
    self.titleLabel.text = self.titleStr;
}
- (void)gobackClick {
    [self dismissViewControllerAnimated:YES completion:nil];
}


#pragma mark -- UICollectionViewDataSource
//某个分区的CELL或者是Item的个数
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
    return self.wholeGoodsArray.count;
}

//返回cell
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
    
    //UICollectionViewCell, 继承于UICollectionReusableView , cell上没有控件, 如果需要控件的话, 需要自定义cell
        ShoeBagCollectionViewCell *cell = (ShoeBagCollectionViewCell *)[collectionView dequeueReusableCellWithReuseIdentifier:cellIndentifier forIndexPath:indexPath];
    
    if (self.wholeGoodsArray.count!=0) {
        NSString *imageStr = [NSString stringWithFormat:@"%@%@", [[[[self.wholeGoodsArray[indexPath.row] objectForKey:@"picprex"] objectForKey:@"m"] componentsSeparatedByString:@" "] firstObject], [self.wholeGoodsArray[indexPath.row] objectForKey:@"picurl"]];
        
        [cell.ShoePicImage sd_setImageWithURL:[NSURL URLWithString:imageStr] placeholderImage:[UIImage imageNamed:@"dress.png"]];
        cell.DetailLabel.text = [NSString stringWithFormat:@"%@", [self.wholeGoodsArray[indexPath.row] objectForKey:@"title"]];
        
        cell.MoneyLabel.text = [NSString stringWithFormat:@"会员价:%@", [self.wholeGoodsArray[indexPath.row] objectForKey:@"huiyuanjia"]];
        cell.SCJLabel.text = [NSString stringWithFormat:@"市场价:%@", [self.wholeGoodsArray[indexPath.row] objectForKey:@"shichangjia"]];
    }
    
   
    
//    cell.DetailLabel.text
//    cell.MoneyLabel.text
//    cell.SCJLabel.text 
    
        return cell;
}

<<<<<<< HEAD
=======
//设置区头和区尾
//- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath {
//    
//    //通过注册的形式设置区头和区尾, 使用了复用机制
//    //参数1: 区分是区头还是区尾
//    //参数2: 注册的标示符
//    //参数3: 所在的位置
//    
//    if ([kind isEqualToString:UICollectionElementKindSectionHeader]) {
//        UICollectionReusableView *headerView = [collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:headerIndentifier forIndexPath:indexPath];
//        
//        for (UIView *tempView in headerView.subviews) {
//            [tempView removeFromSuperview];
//        }
//        
////          [self addShoeSelectBtn];
//       
//        
//        
//        return headerView;
//    }else {
//        return nil;
//    }
//}
>>>>>>> dd1aac4040986135177ad18eb7781566439f59ee

#pragma mark -- UICollectionViewDelegate
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
    
    //商品id
    [self.wholeGoodsArray[indexPath.row] objectForKey:@"id"];
    //编码:
    [self.wholeGoodsArray[indexPath.row] objectForKey:@"bianma"];
    
    ShoperDetailViewController *shopsDetailVC = [[ShoperDetailViewController alloc] init];
    shopsDetailVC.shopID = [self.wholeGoodsArray[indexPath.row] objectForKey:@"id"];
    [self presentViewController:shopsDetailVC animated:YES completion:nil];
    
    
    NSLog(@"%ld--%ld", indexPath.section, indexPath.row);
}

#pragma mark - UICollectionViewDelegateFlowLayout
//返回指定cell的大小
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
    return CGSizeMake(([UIScreen mainScreen].bounds.size.width - 20)/2, 260);
}

//返回某个分区的间距
- (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout insetForSectionAtIndex:(NSInteger)section {
    return UIEdgeInsetsMake(0, 5, 0, 5);
}

//最小的行间距
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumLineSpacingForSectionAtIndex:(NSInteger)section {
    return 5;
}
//返回某一个分区, item之间的最小间距
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumInteritemSpacingForSectionAtIndex:(NSInteger)section {
    return 5;
}



//刷新的方法
- (void)setupHeader
{
    //添加下拉刷新对象
    SDRefreshHeaderView *refreshHeader = [SDRefreshHeaderView refreshView];
    
    //     默认是在navigationController环境下，如果不是在此环境下，请设置
    refreshHeader.isEffectedByNavigationController = NO;
    
    //加入到目标tableview上
    [refreshHeader addToScrollView:self.ShoeColllectionview];
    
    //添加下拉加载内容的方法
    __weak SDRefreshHeaderView *weakRefreshHeader = refreshHeader;
    __weak typeof(self) weakSelf = self;
    refreshHeader.beginRefreshingOperation = ^{
        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
#pragma mark -- 加载数据的方法
            
            if (what == 0) {
                [weakSelf getSubClassData];
                [weakSelf getShoesAndColorData];
            } else if (what == 1) {
                [weakSelf getsecondgoodsData];
            } else {
                [weakSelf getthreegoodsData];
            }
            
//            [weakSelf.ShoeColllectionview reloadData];
            [weakRefreshHeader endRefreshing];
        });
    };
    
    // 进入页面自动加载一次数据
    [refreshHeader autoRefreshWhenViewDidAppear];
}

- (void)setupFooter
{
    SDRefreshFooterView *refreshFooter = [SDRefreshFooterView refreshView];
    refreshFooter.isEffectedByNavigationController = NO;
    [refreshFooter addToScrollView:self.ShoeColllectionview];
    [refreshFooter addTarget:self refreshAction:@selector(footerRefresh)];
    _refreshFooter = refreshFooter;
}


- (void)footerRefresh
{
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
#pragma mark -- 加载数据的方法
        if (what == 0) {
            [self getSubClassData];
            [self getShoesAndColorData];
        } else if (what == 1) {
            [self getsecondgoodsData];
        } else {
            [self getthreegoodsData];
        }
//        [self.ShoeColllectionview reloadData];
        [self.refreshFooter endRefreshing];
    });
}


//获取给分类下的所有商品
- (void)getShoesAndColorData{
        AFHTTPRequestOperationManager *mgr = [AFHTTPRequestOperationManager manager];
    mgr.responseSerializer = [AFHTTPResponseSerializer serializer];
    
    NSString *ajax = @"1";
    NSString *fffid = self.firstid;

    NSDictionary *param = @{@"fffid":[NSString stringWithFormat:@"%@", fffid], @"ajax":[NSString stringWithFormat:@"%@", ajax]};
    
    [mgr POST:@"http://www.ylgw8.com/Prolist/index" parameters:param success:^(AFHTTPRequestOperation *operation, id responseObject) {
        NSString *string = [[NSString alloc] initWithData:responseObject encoding:NSUTF8StringEncoding];
          self.wholeGoodsArray = [@[]mutableCopy];
        if ([[self toArrayOrNSDictionary:responseObject] isKindOfClass:[NSDictionary class]]) {
            UIAlertView *alview = [[UIAlertView alloc] initWithTitle:@"" message:[NSString stringWithFormat:@"%@", [[self toArrayOrNSDictionary:responseObject] objectForKey:@"message"]] delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
            [alview show];
        } else {
          
        self.wholeGoodsArray = [self toArrayOrNSDictionary:responseObject];
        }
<<<<<<< HEAD
        
=======
>>>>>>> dd1aac4040986135177ad18eb7781566439f59ee
   NSLog(@"%@", self.wholeGoodsArray);
        
        [self.ShoeColllectionview reloadData];
    } failure:^(AFHTTPRequestOperation *operation,NSError *error)
     {
         //         operation.response.statusCode;//404 401之类
//         NSLog(@"数据请求错误原因:%@", error);
//         NSLog(@"数据请求错误码:%ld", (long)operation.response.statusCode);
     }];
}

//获取商品分类
- (void)getSubClassData{
    AFHTTPRequestOperationManager *mgr = [AFHTTPRequestOperationManager manager];
    mgr.responseSerializer = [AFHTTPResponseSerializer serializer];
    
    NSString *all = @"1";
    NSDictionary *param = @{@"all":[NSString stringWithFormat:@"%@", all]};
    
    [mgr GET:@"http://ylgw8.com/Prolist/getClass" parameters:param success:^(AFHTTPRequestOperation *operation, id responseObject) {
//        NSString *string = [[NSString alloc] initWithData:responseObject encoding:NSUTF8StringEncoding];
        NSArray *array = [self toArrayOrNSDictionary:responseObject];
        
//        NSLog(@"%@------%@", string, array);
        
        
        for (NSDictionary *dic in array) {
            if ([[NSString stringWithFormat:@"%@", dic[@"id"]] isEqualToString:self.firstid]) {
//                NSLog(@"%@", dic);
                self.WholeClassArray = dic[@"tt"];
                for (NSDictionary *ff in self.WholeClassArray) {
                    [self.firstArray addObject:ff[@"classname"]];
                    [self.firstIdArray addObject:[NSString stringWithFormat:@"%@", ff[@"id"]]];
                    
                }
                NSMutableArray *ss = [[self.WholeClassArray firstObject] objectForKey:@"cc"];
                
                for (NSDictionary *secondDic in ss) {
                    
                    [self.secondArray addObject:[secondDic objectForKey:@"classname"]];
                    [self.secondIdArray addObject:[NSString stringWithFormat:@"%@", secondDic[@"id"]]];
                }
                
            }
        }
        
        [self addShoeSelectBtnOne];
        [self addShoeSelectBtnTwo];
        [self.ShoeColllectionview reloadData];
    } failure:^(AFHTTPRequestOperation *operation,NSError *error)
     {
         //         operation.response.statusCode;//404 401之类
         //         NSLog(@"数据请求错误原因:%@", error);
         //         NSLog(@"数据请求错误码:%ld", (long)operation.response.statusCode);
     }];
}


// 将JSON串转化为字典或者数组
- (id)toArrayOrNSDictionary:(NSData *)jsonData{
    NSError *error = nil;
    id jsonObject = [NSJSONSerialization JSONObjectWithData:jsonData
                                                    options:NSJSONReadingAllowFragments
                                                      error:&error];
    
    if (jsonObject != nil && error == nil){
        return jsonObject;
    }else{
        // 解析错误
        return nil;
    }
}

//有二级分类的商品
- (void)getsecondgoodsData{
    AFHTTPRequestOperationManager *mgr = [AFHTTPRequestOperationManager manager];
    mgr.responseSerializer = [AFHTTPResponseSerializer serializer];
    
    NSString *ajax = @"1";
    NSString *fffid = self.firstid;
    NSString *erjiid = ffid;
   
    NSDictionary *param = @{@"fffid":[NSString stringWithFormat:@"%@", fffid], @"ajax":[NSString stringWithFormat:@"%@", ajax], @"ffid":[NSString stringWithFormat:@"%@", erjiid]};
    
    [mgr POST:@"http://www.ylgw8.com/Prolist/index" parameters:param success:^(AFHTTPRequestOperation *operation, id responseObject) {
//        NSString *string = [[NSString alloc] initWithData:responseObject encoding:NSUTF8StringEncoding];
        
           self.wholeGoodsArray = [@[]mutableCopy];
        if ([[self toArrayOrNSDictionary:responseObject] isKindOfClass:[NSDictionary class]]) {
            UIAlertView *alview = [[UIAlertView alloc] initWithTitle:@"" message:[NSString stringWithFormat:@"%@", [[self toArrayOrNSDictionary:responseObject] objectForKey:@"message"]] delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
            [alview show];
        } else {
     
        
        self.wholeGoodsArray = [self toArrayOrNSDictionary:responseObject];
        }
//        NSLog(@"%@", self.wholeGoodsArray);
        
        [self.ShoeColllectionview reloadData];
    } failure:^(AFHTTPRequestOperation *operation,NSError *error)
     {
         //         operation.response.statusCode;//404 401之类
         //         NSLog(@"数据请求错误原因:%@", error);
         //         NSLog(@"数据请求错误码:%ld", (long)operation.response.statusCode);
     }];
}

//有三级分类的商品
- (void)getthreegoodsData{
    AFHTTPRequestOperationManager *mgr = [AFHTTPRequestOperationManager manager];
    mgr.responseSerializer = [AFHTTPResponseSerializer serializer];
    
    NSString *ajax = @"1";
    NSString *fffid = self.firstid;
    NSString *erjiid = ffid;
    NSString *sanjiid = fid;
    
    NSDictionary *param = @{@"fffid":[NSString stringWithFormat:@"%@", fffid], @"ajax":[NSString stringWithFormat:@"%@", ajax], @"ffid":[NSString stringWithFormat:@"%@", erjiid], @"fid":[NSString stringWithFormat:@"%@", sanjiid]};
    
    [mgr POST:@"http://www.ylgw8.com/Prolist/index" parameters:param success:^(AFHTTPRequestOperation *operation, id responseObject) {
//        NSString *string = [[NSString alloc] initWithData:responseObject encoding:NSUTF8StringEncoding];
        
        
        
        self.wholeGoodsArray = [@[]mutableCopy];
     [self toArrayOrNSDictionary:responseObject];
        if ([[self toArrayOrNSDictionary:responseObject] isKindOfClass:[NSDictionary class]]) {
            UIAlertView *alview = [[UIAlertView alloc] initWithTitle:@"" message:[NSString stringWithFormat:@"%@", [[self toArrayOrNSDictionary:responseObject] objectForKey:@"message"]] delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
            [alview show];
        } else {
      
        
        self.wholeGoodsArray = [self toArrayOrNSDictionary:responseObject];
        }
          NSLog(@"%@", self.wholeGoodsArray);
        [self.ShoeColllectionview reloadData];
    } failure:^(AFHTTPRequestOperation *operation,NSError *error)
     {
         //         operation.response.statusCode;//404 401之类
         //         NSLog(@"数据请求错误原因:%@", error);
         //         NSLog(@"数据请求错误码:%ld", (long)operation.response.statusCode);
     }];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/


/*
{
    classname = "\U978b\U5305\U914d\U9970";
    "en_classname" = "";
    "f_id" = 0;
    id = 4;
    imgurl = "";
    recommend = 0;
    rmtj = 0;
    sorts = 0;
    tt =     (
              {
                  cc =             (
                                    {
                                        classname = "\U76ae\U5e26";
                                        "en_classname" = "";
                                        "f_id" = 139;
                                        id = 154;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U56f4\U5dfe/\U4e1d\U5dfe";
                                        "en_classname" = "";
                                        "f_id" = 139;
                                        id = 158;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U624b\U8868";
                                        "en_classname" = "";
                                        "f_id" = 139;
                                        id = 352;
                                        imgurl = "20150728100922.jpg";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U9879\U94fe";
                                        "en_classname" = "";
                                        "f_id" = 139;
                                        id = 486;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U624b\U94fe";
                                        "en_classname" = "";
                                        "f_id" = 139;
                                        id = 487;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U624b\U956f";
                                        "en_classname" = "";
                                        "f_id" = 139;
                                        id = 488;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U8033\U9970";
                                        "en_classname" = "";
                                        "f_id" = 139;
                                        id = 489;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U6212\U6307";
                                        "en_classname" = "";
                                        "f_id" = 139;
                                        id = 490;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U906e\U9633\U4f1e/\U96e8\U8863";
                                        "en_classname" = "";
                                        "f_id" = 139;
                                        id = 539;
                                        imgurl = "20150728100943.jpg";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U53d1\U9970";
                                        "en_classname" = "";
                                        "f_id" = 139;
                                        id = 621;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U60c5\U4fa3\U5bf9\U6212";
                                        "en_classname" = "";
                                        "f_id" = 139;
                                        id = 666;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U60c5\U4fa3\U540a\U5760";
                                        "en_classname" = "";
                                        "f_id" = 139;
                                        id = 667;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U592a\U9633\U955c";
                                        "en_classname" = "";
                                        "f_id" = 139;
                                        id = 687;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U5e73\U5149\U773c\U955c";
                                        "en_classname" = "";
                                        "f_id" = 139;
                                        id = 688;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U540a\U5760";
                                        "en_classname" = "";
                                        "f_id" = 139;
                                        id = 731;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U9996\U9970\U5957\U88c5";
                                        "en_classname" = "";
                                        "f_id" = 139;
                                        id = 736;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U80f8\U9488";
                                        "en_classname" = "";
                                        "f_id" = 139;
                                        id = 737;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U77f3\U5934\U6c89";
                                        "en_classname" = "";
                                        "f_id" = 139;
                                        id = 913;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    }
                                    );
                  classname = "\U914d\U9970";
                  "en_classname" = "";
                  "f_id" = 4;
                  id = 139;
                  imgurl = "20150727035339.jpg";
                  recommend = 0;
                  rmtj = 0;
                  sorts = 0;
              },
              {
                  cc =             (
                                    {
                                        classname = "\U65c5\U884c\U7bb1";
                                        "en_classname" = "";
                                        "f_id" = 140;
                                        id = 242;
                                        imgurl = "20150728100848.jpg";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    }
                                    );
                  classname = "\U65c5\U884c\U7bb1\U5305";
                  "en_classname" = "";
                  "f_id" = 4;
                  id = 140;
                  imgurl = "20150727035316.jpg";
                  recommend = 0;
                  rmtj = 0;
                  sorts = 0;
              },
              {
                  cc =             (
                                    {
                                        classname = "\U7537\U58eb\U94b1\U5305";
                                        "en_classname" = "";
                                        "f_id" = 141;
                                        id = 241;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U5973\U58eb\U94b1\U5305";
                                        "en_classname" = "";
                                        "f_id" = 141;
                                        id = 370;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U96f6\U94b1\U5305";
                                        "en_classname" = "";
                                        "f_id" = 141;
                                        id = 857;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U94a5\U5319\U5305";
                                        "en_classname" = "";
                                        "f_id" = 141;
                                        id = 847;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U5361\U5305";
                                        "en_classname" = "";
                                        "f_id" = 141;
                                        id = 858;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    }
                                    );
                  classname = "\U94b1\U5305\U94b1\U5939";
                  "en_classname" = "";
                  "f_id" = 4;
                  id = 141;
                  imgurl = "20150727035246.jpg";
                  recommend = 0;
                  rmtj = 0;
                  sorts = 0;
              },
              {
                  cc =             (
                                    {
                                        classname = "\U5546\U52a1\U578b";
                                        "en_classname" = "";
                                        "f_id" = 142;
                                        id = 240;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U5355\U80a9\U7537\U5305";
                                        "en_classname" = "";
                                        "f_id" = 142;
                                        id = 279;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U624b\U63d0\U5305";
                                        "en_classname" = "";
                                        "f_id" = 142;
                                        id = 280;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U624b\U62ff\U5305";
                                        "en_classname" = "";
                                        "f_id" = 142;
                                        id = 283;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U7537\U58eb\U80f8\U5305";
                                        "en_classname" = "";
                                        "f_id" = 142;
                                        id = 284;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    }
                                    );
                  classname = "\U7537\U5305";
                  "en_classname" = "";
                  "f_id" = 4;
                  id = 142;
                  imgurl = "20150727035058.jpg";
                  recommend = 0;
                  rmtj = 0;
                  sorts = 0;
              },
              {
                  cc =             (
                                    {
                                        classname = "\U65f6\U5c1a\U6b3e";
                                        "en_classname" = "";
                                        "f_id" = 143;
                                        id = 238;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U5355\U80a9\U5973\U5305";
                                        "en_classname" = "";
                                        "f_id" = 143;
                                        id = 274;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U624b\U63d0\U5973\U5305";
                                        "en_classname" = "";
                                        "f_id" = 143;
                                        id = 275;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U659c\U630e\U5973\U5305";
                                        "en_classname" = "";
                                        "f_id" = 143;
                                        id = 276;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U53cc\U80a9\U5305";
                                        "en_classname" = "";
                                        "f_id" = 143;
                                        id = 277;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U624b\U62ff\U5305";
                                        "en_classname" = "";
                                        "f_id" = 143;
                                        id = 278;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U5305\U5305\U914d\U4ef6";
                                        "en_classname" = "";
                                        "f_id" = 143;
                                        id = 859;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    }
                                    );
                  classname = "\U5973\U5305";
                  "en_classname" = "";
                  "f_id" = 4;
                  id = 143;
                  imgurl = "20150727035003.jpg";
                  recommend = 0;
                  rmtj = 0;
                  sorts = 0;
              },
              {
                  cc =             (
                                    {
                                        classname = "\U51c9\U62d6\U978b";
                                        "en_classname" = "";
                                        "f_id" = 144;
                                        id = 427;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U978b\U57ab";
                                        "en_classname" = "";
                                        "f_id" = 144;
                                        id = 820;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U5c45\U5bb6\U62d6\U978b";
                                        "en_classname" = "";
                                        "f_id" = 144;
                                        id = 906;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U68c9\U62d6";
                                        "en_classname" = "";
                                        "f_id" = 144;
                                        id = 908;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    }
                                    );
                  classname = "\U62d6\U978b";
                  "en_classname" = "";
                  "f_id" = 4;
                  id = 144;
                  imgurl = "20150727034941.jpg";
                  recommend = 0;
                  rmtj = 0;
                  sorts = 0;
              },
              {
                  cc =             (
                                    {
                                        classname = "\U5546\U52a1\U978b";
                                        "en_classname" = "";
                                        "f_id" = 146;
                                        id = 152;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U4f11\U95f2\U978b";
                                        "en_classname" = "";
                                        "f_id" = 146;
                                        id = 153;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U8c46\U8c46\U978b";
                                        "en_classname" = "";
                                        "f_id" = 146;
                                        id = 263;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U677f\U978b";
                                        "en_classname" = "";
                                        "f_id" = 146;
                                        id = 265;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U76ae\U978b";
                                        "en_classname" = "";
                                        "f_id" = 146;
                                        id = 266;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U8fd0\U52a8\U978b";
                                        "en_classname" = "";
                                        "f_id" = 146;
                                        id = 290;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U51c9\U978b";
                                        "en_classname" = "";
                                        "f_id" = 146;
                                        id = 914;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    }
                                    );
                  classname = "\U7537\U978b";
                  "en_classname" = "";
                  "f_id" = 4;
                  id = 146;
                  imgurl = "20150727034612.jpg";
                  recommend = 0;
                  rmtj = 0;
                  sorts = 0;
              },
              {
                  cc =             (
                                    {
                                        classname = "\U677f\U978b";
                                        "en_classname" = "";
                                        "f_id" = 147;
                                        id = 149;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U5355\U9774";
                                        "en_classname" = "";
                                        "f_id" = 147;
                                        id = 150;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U5355\U978b";
                                        "en_classname" = "";
                                        "f_id" = 147;
                                        id = 151;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U9a6c\U4e01\U9774";
                                        "en_classname" = "";
                                        "f_id" = 147;
                                        id = 256;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U4e2d\U7b52\U9774";
                                        "en_classname" = "";
                                        "f_id" = 147;
                                        id = 259;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U8fd0\U52a8\U978b";
                                        "en_classname" = "";
                                        "f_id" = 147;
                                        id = 291;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U51c9\U978b";
                                        "en_classname" = "";
                                        "f_id" = 147;
                                        id = 437;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U8c46\U8c46\U978b";
                                        "en_classname" = "";
                                        "f_id" = 147;
                                        id = 652;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U9c7c\U5634\U978b";
                                        "en_classname" = "";
                                        "f_id" = 147;
                                        id = 893;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U9ad8\U8ddf\U978b";
                                        "en_classname" = "";
                                        "f_id" = 147;
                                        id = 911;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U4f11\U95f2\U978b";
                                        "en_classname" = "";
                                        "f_id" = 147;
                                        id = 917;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U77ed\U9774";
                                        "en_classname" = "";
                                        "f_id" = 147;
                                        id = 945;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    }
                                    );
                  classname = "\U5973\U978b";
                  "en_classname" = "";
                  "f_id" = 4;
                  id = 147;
                  imgurl = "20150727034544.jpg";
                  recommend = 0;
                  rmtj = 0;
                  sorts = 0;
              },
              {
                  cc =             (
                                    {
                                        classname = "\U624b\U956f/\U624b\U94fe";
                                        "en_classname" = "";
                                        "f_id" = 964;
                                        id = 965;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U811a\U94fe";
                                        "en_classname" = "";
                                        "f_id" = 964;
                                        id = 966;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U6212\U6307/\U6307\U73af";
                                        "en_classname" = "";
                                        "f_id" = 964;
                                        id = 967;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U957f\U547d\U9501\U5957\U88c5";
                                        "en_classname" = "";
                                        "f_id" = 964;
                                        id = 968;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U540a\U5760";
                                        "en_classname" = "";
                                        "f_id" = 964;
                                        id = 969;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U8033\U73af\U8033\U9489";
                                        "en_classname" = "";
                                        "f_id" = 964;
                                        id = 970;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    },
                                    {
                                        classname = "\U9879\U94fe";
                                        "en_classname" = "";
                                        "f_id" = 964;
                                        id = 971;
                                        imgurl = "";
                                        recommend = 0;
                                        rmtj = 0;
                                        sorts = 0;
                                    }
                                    );
                  classname = "\U73e0\U5b9d";
                  "en_classname" = "";
                  "f_id" = 4;
                  id = 964;
                  imgurl = "20150727034520.jpg";
                  recommend = 0;
                  rmtj = 0;
                  sorts = 0;
              }
              );
}
*/

@end
